package com.dianping.cat.home.server.entity;

import com.dianping.cat.home.server.BaseEntity;
import com.dianping.cat.home.server.IVisitor;






public class Segment
  extends BaseEntity<Segment>
{
  private String m_id;
  private String m_category;
  private String m_type;

  public Segment() {}

/* 20 */   public Segment(String id) { this.m_id = id; }




/* 25 */   public void accept(IVisitor visitor) { visitor.visitSegment(this); }



  public boolean equals(Object obj) {
/* 30 */     if (obj instanceof Segment) {
/* 31 */       Segment _o = (Segment)obj;

/* 33 */       if (!equals(getId(), _o.getId())) {
/* 34 */         return false;
      }

/* 37 */       return true;
    }

/* 40 */     return false;
  }


/* 44 */   public String getCategory() { return this.m_category; }



/* 48 */   public String getId() { return this.m_id; }



/* 52 */   public String getType() { return this.m_type; }



  public int hashCode() {
/* 57 */     int hash = 0;

/* 59 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }




  public void mergeAttributes(Segment other) {
/* 66 */     assertAttributeEquals(other, "segment", "id", this.m_id, other.getId());

/* 68 */     if (other.getCategory() != null) {
/* 69 */       this.m_category = other.getCategory();
    }

/* 72 */     if (other.getType() != null) {
/* 73 */       this.m_type = other.getType();
    }
  }

  public Segment setCategory(String category) {
/* 78 */     this.m_category = category;
/* 79 */     return this;
  }

  public Segment setId(String id) {
/* 83 */     this.m_id = id;
/* 84 */     return this;
  }

  public Segment setType(String type) {
/* 88 */     this.m_type = type;
/* 89 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/server/entity/Segment.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */